//
//  GCQrCodeViewController.m
//  GoldChampion
//
//  Created by Mac on 2018/4/12.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "GCQrCodeViewController.h"

@interface GCQrCodeViewController ()

@end

@implementation GCQrCodeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"我的二维码";
    [self configSubView];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark --subView
- (void)configSubView{
    UIView * header = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UIScreenWidth, 30)];
    
    UIView * whiteView = [[UIView alloc] initWithFrame:CGRectMake(30, 60, UIScreenWidth - 60, UIScreenWidth - 60)];
    whiteView.backgroundColor = [UIColor whiteColor];
    whiteView.layer.cornerRadius = 4;
    whiteView.clipsToBounds = YES;
    [header addSubview:whiteView];
    
    UIImageView * bannerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(50, 30, whiteView.width - 100, whiteView.width - 100)];
    bannerImageView.image = [UIImage imageNamed:@"erweima"];
    [whiteView addSubview:bannerImageView];
    
    STLabel * titleLable = [[STLabel alloc] initWithFrame:CGRectMake(0, bannerImageView.bottom + 10, whiteView.width, 30)
                                                     text:@"扫一扫上面的二维码，关注我哟"
                                                textColor:FirstTextColor
                                                     font:14
                                              isSizetoFit:NO
                                            textAlignment:NSTextAlignmentCenter];
    [whiteView addSubview:titleLable];
    
    header.height = whiteView.bottom;
    self.tableView.tableHeaderView = header;
    
    
}


@end
